<template>
  <div>
    <div class="mod-config">
      <el-table
        :data="dataList"
        border
        v-loading="dataListLoading"
        style="width: 100%"
      >
        <el-table-column prop="shareTypetext" header-align="center" align="center" label="分享类型"></el-table-column>
        <el-table-column fixed="right" header-align="center" align="center" width="150" label="操作">
          <template slot-scope="scope">
            <el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button>
          </template>
        </el-table-column>
      </el-table>
      <add-or-update ref="addOrUpdate"></add-or-update>
    </div>
  </div>
</template>
<script>
  import AddOrUpdate from './bookShare'
  export default {
    data() {
      return {
        dataList: [
          {id: 0, shareTypetext: '书籍分享落地页'}
        ],
        dataListLoading: false
      }
    },
    components: {
      AddOrUpdate
    },
    activated() {
    },
    methods: {
      addOrUpdateHandle() {
        this.$nextTick(() => {
          this.$refs.addOrUpdate.init()
        })
      }
    }
  }
</script>
